package com.iran.facade;

public class Facade {
    SubSystemOne systemOne;
    SubSystemTwo systemTwo;
    SubSystemThree subSystemThree;

    public Facade(SubSystemOne systemOne, SubSystemTwo systemTwo, SubSystemThree subSystemThree) {
        this.systemOne = systemOne;
        this.systemTwo = systemTwo;
        this.subSystemThree = subSystemThree;
    }

    public void method1(){
        systemOne.systemOne();
        subSystemThree.systemThree();
    }
    public void method2(){
        systemTwo.subSystemTwo();
        systemOne.systemOne();
    }
}
